<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>文章页面</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="<c:url value="/resources/hplus/lib/css/bootstrap.min.css?v=3.3.6" />" rel="stylesheet">
    <link href="<c:url value="/resources/hplus/lib/css/font-awesome.css?v=3.3.6" />" rel="stylesheet">

    <link href="<c:url value="/resources/hplus/lib/css/style.min.css?v=3.3.6" />" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight article">
    <div class="row">
        <div class="col-lg-10 col-lg-offset-1">
            <div class="ibox">
                <div class="ibox-content">
                      <div class="pull-right" style="font-size: 25px;">
                          <c:if test="${sessionScope.user.userName!=null}">
                              ${sessionScope.user.userName},<a class="btn btn-primary" type="button" href="<c:url value="/mobile/login/user/logout.json" />">注销</a>
                          </c:if>
                          <c:if test="${sessionScope.user.userName==null}">
                              <a class="btn btn-primary" type="button" href="<c:url value="/mobile/login/user/gologin.json" />">登录</a>
                          </c:if>
                      </div>
                    <div class="text-center article-title">
                        <h1>
                            文章列表</h1>
                    </div>

                    <div class="row">
                        <div class="col-lg-12">

                            <%--<h2>评论：</h2>--%>
                            <c:forEach items="${articleList}" var="article">
                                <div class="social-feed-box">
                                    <div class="social-avatar">
                                            <%-- <a href="" class="pull-left">
                                                 <img alt="image" src="http://ozwpnu2pa.bkt.clouddn.com/a1.jpg">
                                             </a>--%>
                                        <div class="media-body">
                                            <a target="_blank" href="<c:url value="/mobile/article/detail.json?id=${article.id}" />" style="font-size: 24px;">
                                                   ${article.articleName}
                                            </a>
                                            <small class="text-muted" style="font-size: 120%;">发布时间：<fmt:formatDate value="${article.createTime}"
                                                                                      pattern="yyyy年MM月dd日HH点mm分ss秒"/></small>
                                        </div>
                                    </div>
                                    <div class="social-body">
                                        <p style="font-size: 18px;">
                                                ${article.simple} </p>
                                    </div>
                                </div>
                            </c:forEach>

                        </div>
                    </div>


                </div>
            </div>
        </div>
    </div>

</div>
<script src="//hm.baidu.com/hm.js?dde6ba2851f3db0ddc415ce0f895822e"></script>
<script src="<c:url value="/resources/hplus/lib/js/jquery.min.js?v=2.1.4"/>"></script>
<script src="<c:url value="/resources/hplus/lib/js/bootstrap.min.js?v=3.3.6"/>"></script>

</body>
</html>